package com.cxs.service.impl;

import com.cxs.mapper.CategoryMapper;
import com.cxs.model.Category;
import com.cxs.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/*
 * @Author:cxs
 * @Date:2021/9/30  22:13
 * @Version 1.0
 * @Motto:放下杂念,只为迎接明天更好的自己
 * */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> list() {
        return categoryMapper.selectByExample(null);
    }
}
